<?php 
/* SVN FILE: $Id$ */
/* Individual Test cases generated on: 2009-09-09 21:33:05 : 1252546385*/
App::import('Model', 'Individual');

class IndividualTestCase extends CakeTestCase {
	var $Individual = null;
	var $fixtures = array('app.individual', 'app.registration');

	function startTest() {
		$this->Individual =& ClassRegistry::init('Individual');
	}

	function testIndividualInstance() {
		$this->assertTrue(is_a($this->Individual, 'Individual'));
	}

	function testIndividualFind() {
		$this->Individual->recursive = -1;
		$results = $this->Individual->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Individual' => array(
			'id'  => 1,
			'registration_id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'division'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>